Optimal. Leaf size=101 \[ -\frac {8 a^2 (5 c+3 d) \cos (e+f x)}{15 f \sqrt {a+a \sin (e+f x)}}-\frac {2 a (5 c+3 d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 f}-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{5 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2830, 2726,
2725} \begin {gather*} -\frac {8 a^2 (5 c+3 d) \cos (e+f x)}{15 f \sqrt {a \sin (e+f x)+a}}-\frac {2 a (5 c+3 d) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{15 f}-\frac {2 d \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{5 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2726
Rule 2830
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^{3/2} (c+d \sin (e+f x)) \, dx &=-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{5 f}+\frac {1}{5} (5 c+3 d) \int (a+a \sin (e+f x))^{3/2} \, dx\\ &=-\frac {2 a (5 c+3 d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 f}-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{5 f}+\frac {1}{15} (4 a (5 c+3 d)) \int \sqrt {a+a \sin (e+f x)} \, dx\\ &=-\frac {8 a^2 (5 c+3 d) \cos (e+f x)}{15 f \sqrt {a+a \sin (e+f x)}}-\frac {2 a (5 c+3 d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{15 f}-\frac {2 d \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{5 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.27, size = 101, normalized size = 1.00 \begin {gather*} -\frac {a \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \sqrt {a (1+\sin (e+f x))} (50 c+39 d-3 d \cos (2 (e+f x))+2 (5 c+9 d) \sin (e+f x))}{15 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 2.94, size = 77, normalized size = 0.76
method | result | size |
default | \(\frac {2 \left (1+\sin \left (f x +e \right )\right ) a^{2} \left (\sin \left (f x +e \right )-1\right ) \left (\sin \left (f x +e \right ) \left (5 c +9 d \right )-3 \left (\cos ^{2}\left (f x +e \right )\right ) d +25 c +21 d \right )}{15 \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) | \(77\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 145, normalized size = 1.44 \begin {gather*} \frac {2 \, {\left (3 \, a d \cos \left (f x + e\right )^{3} - {\left (5 \, a c + 6 \, a d\right )} \cos \left (f x + e\right )^{2} - 20 \, a c - 12 \, a d - {\left (25 \, a c + 21 \, a d\right )} \cos \left (f x + e\right ) - {\left (3 \, a d \cos \left (f x + e\right )^{2} - 20 \, a c - 12 \, a d + {\left (5 \, a c + 9 \, a d\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{15 \, {\left (f \cos \left (f x + e\right ) + f \sin \left (f x + e\right ) + f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}} \left (c + d \sin {\left (e + f x \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.57, size = 147, normalized size = 1.46 \begin {gather*} \frac {\sqrt {2} {\left (3 \, a d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {5}{4} \, \pi + \frac {5}{2} \, f x + \frac {5}{2} \, e\right ) + 30 \, {\left (3 \, a c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 2 \, a d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 5 \, {\left (2 \, a c \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 3 \, a d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sin \left (-\frac {3}{4} \, \pi + \frac {3}{2} \, f x + \frac {3}{2} \, e\right )\right )} \sqrt {a}}{30 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}\,\left (c+d\,\sin \left (e+f\,x\right )\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________